#! /usr/bin/python
import pygame,sys
from uniCore import *

SCREEN=pygame.display.set_mode((640,480))

imag=pygame.image.load("test.png").convert()
anim=uniAnimation()
while 1:
    #events
    for e in pygame.event.get():
        if e.type==pygame.QUIT:sys.exit()
    #redraw
    SCREEN.fill((0,0,0))
    for i in range(13,16):
        SCREEN.blit(anim.getframeimg(imag,i),(0,0))
        pygame.display.flip()
        pygame.time.wait(200)
